package secondweek;

import java.util.Scanner;

public class reversetest {
    public static void main(String args[]){
        reverse reverse = new reverse();
        Scanner scan = new Scanner(System.in);
        String another = "y";
        while(another.equalsIgnoreCase("y")){
            System.out.print("Enter the symbol for the element set:");
            String element = scan.nextLine();
            System.out.print("Enter the sentence you want to change:");
            String sentence = scan.nextLine();
            System.out.println(reverse.rever(sentence,element));
            System.out.print("Enter another(y/n)?");
            another = scan.nextLine();
            System.out.println();
        }
    }
}
